package com.gopay.bis.manager.bank.payconfig;

import com.gopay.common.domain.bank.ExPayBaseMessage;

/**
 * Created by Administrator on 14-8-21.
 */
public interface SmsSupportService {
	
	/** 
	 * 发送短信
	 * @param baseMsg
	 * @return 
	 */
	public boolean sendSMS(ExPayBaseMessage baseMsg);
	
	/** 
	 * 校验短信
	 * @param baseMsg
	 * @return 
	 */
	public boolean checkSMS(ExPayBaseMessage baseMsg);

	
	/** 
	 * 该订单发送，校验次数是否超过最大次数
	 * @param orderNo
	 * @param maxCount
	 * @return 
	 */
	public boolean checkSendSmsCount(String orderNo, int maxCount);

	/** 
	 * 统计该订单校验失败次数
	 * @param orderNo
	 * @return 
	 */
	public int checkFailSmsCount(String orderNo);
	
	/**
	 * 统计卡的失败次数
	 *  
	 * @param cardNO
	 * @return 
	 */
	public int checkCardFailSmsCount(String orderId,String cardNO);
	
	/** 
	 * 统计该订单发送成功次数
	 * @param orderNo
	 * @return  
	 */
	public int checkSendSmsCont(String orderNo);
	
	/** 
	 * 发送和校验时的手机号是否匹配
	 * @param orderNo
	 * @param mobile
	 * @return 
	 */
	public boolean checkSendMobile(ExPayBaseMessage baseMsg);

}
